package org.easymis.crm.modules.crm.controller;

import org.easymis.commons.web.BaseController;
import org.easymis.commons.web.utils.Page;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@Api(tags = "CRM管理")
@Controller
public class CrmIndexController extends BaseController{
	@ApiOperation(value = "CRM系统首页", notes = "JSON ", produces = MediaType.APPLICATION_JSON_VALUE)
	@RequestMapping(value = { "/crm/index.html" }, method = { RequestMethod.GET, RequestMethod.POST })
	public String index(@ModelAttribute Page page, ModelMap map) throws Exception {
		return getTplPath(map, "crm/index/index");
	}
}
